import { App } from 'vue';
import { registerPanelItemProvider } from '@ibiz-template/runtime';
import { PanelContainerProvider } from './i-biz-panel-container.provider';
import PanelContainer from './i-biz-panel-container.vue'

export const IBizPanelContainer = {
  install(v: App) {
    v.component('IBizPanelContainer', PanelContainer);
    registerPanelItemProvider('CONTAINER', () => new PanelContainerProvider());
    registerPanelItemProvider(
      'CONTAINER_DEFAULT',
      () => new PanelContainerProvider(),
    );
  }  
};
